package com.xxzuibang.day10.重写;

// 3) 在 main 中,分别创建 Person 和 Student 对象，调用 say 方法输出自我介绍
public class Override02 {
    public static void main(String[] args) {
        Person1 person1 = new Person1("hong", 18);
        Student student = new Student("long", 30, 2, 99.8);
        System.out.println(person1.say());
        System.out.println(student.say());
    }
}
